package com.aa.activity;

import com.aa.Common;
import com.aa.R;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class FindPasswordActivity extends Activity {

	private TextView mTitileCenter;
	private Button mbtnTitileBack;
	private Button mbtnTitileOk;
	private EditText metPhoneNumber;
	private EditText metCode;
	private Button mbtn_GetCode;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.findpassword);
		initView();
	}
	
	private void initView(){
		mbtnTitileBack = (Button)findViewById(R.id.title_btn1);
		mbtnTitileBack.setText(R.string.app_back_tip);
		mbtnTitileBack.setVisibility(1);
		mbtnTitileOk = (Button)findViewById(R.id.title_btn4);
		mbtnTitileOk.setText(R.string.app_ok_tip);
		mbtnTitileOk.setVisibility(1);
		mTitileCenter = (TextView)findViewById(R.id.app_title_center);
		mTitileCenter.setText(R.string.findpassword_1);
		metPhoneNumber = (EditText)findViewById(R.id.findpassword_edit1);
		metPhoneNumber.setText(Common.iMyPhoneNumber);
		metCode = (EditText)findViewById(R.id.findpassword_edit2);
		metCode.setFocusable(false);
		mbtn_GetCode = (Button)findViewById(R.id.findpasswod_code);
		
	}
	
	private void initListener(){
		mbtnTitileBack.setOnClickListener(new OnFindPasswordClickListener());
		mbtnTitileOk.setOnClickListener(new OnFindPasswordClickListener());
		mbtn_GetCode.setOnClickListener(new OnFindPasswordClickListener());
	}
	
	private class OnFindPasswordClickListener implements OnClickListener{

		@Override
		public void onClick(View v) {
			switch (v.getId()) {
			case R.id.title_btn1:
				finish();
				break;
			case R.id.title_btn4:
				break;
			case R.id.findpasswod_code:
			default:
				break;
			}
			
		}
		
	}

}
